home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / smbfs / source / include / smb / smb_fs_sb.h next >
C/C++ Source or Header  |  2000-12-04  |  1KB  |  53 lines

  1. /*
  2.  * $Id: smb_fs_sb.h,v 1.7 2000/12/04 16:05:03 olsen Exp $
  3.  *
  4.  * :ts=8
  5.  *
  6.  * smb_fs_sb.h
  7.  *
  8.  * Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke
  9.  * Modified for use with AmigaOS by Olaf Barthel <olsen@sourcery.han.de>
  10.  */
  11.  
  12. #ifndef _SMB_FS_SB
  13. #define _SMB_FS_SB
  14.  
  15. #include <smb/smb.h>
  16. #include <smb/smb_mount.h>
  17.  
  18. struct smb_server
  19. {
  20.   enum smb_protocol protocol;   /* The protocol this
  21.                                    connection accepts. */
  22.  
  23.   int lock;                     /* To prevent mismatch in
  24.                                    protocols. */
  25.   word max_xmit;
  26.   int max_recv;                 /* added by CS */
  27.   word server_uid;
  28.   word tid;
  29.  
  30.   struct smb_mount_data mount_data; /* We store the complete information here
  31.                                        to be able to reconnect.
  32.                                      */
  33.  
  34.   unsigned short rcls;          /* The error codes we received */
  35.   unsigned short err;
  36.   unsigned char *packet;
  37.  
  38.   int security_mode;
  39.   unsigned char crypt_key[8];
  40.  
  41.   struct smba_server * abstraction;
  42.  
  43.   enum smb_conn_state state;
  44.  
  45.   /* The following are LANMAN 1.0 options transferred to us in
  46.      SMBnegprot */
  47.   word maxxmt;
  48.   word blkmode;
  49.   dword sesskey;
  50. };
  51.  
  52. #endif
  53.